<?php

require_once 'conn.php';
$id = $_GET['id'];



$sql = "
DELETE FROM `bbs`.`t_message` WHERE `t_message`.`id` =$id;
";
 //echo $sql;
 
 //die;
 
 $result = $conn->query($sql);


if($result===false){
    echo"数据库操作失败";
}else{
  header("location:index2.php");  
}
